<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
        <meta charset="UTF-8"/>
        <meta name="renderer" content="webkit"/>
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0,uc-fitscreen=yes"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
        <meta name="format-detection" content="telephone=no"/>
        <meta name="keywords" content="文章编辑 Aixiaoai_cn"/>
        <meta name="description" content="文章编辑 Aixiaoai_cn"/>
        <!-- miniMObile.css、js -->
        <link rel="stylesheet" type="text/css" href="../../static/css/miniMobile.css"/>
        <script type="text/javascript" src="../../static/js/zepto.min.js"></script>
        <script type="text/javascript" src="../../static/js/miniMobile.js"></script>
        <!-- fonticon -->
        <link rel="stylesheet" type="text/css" href="../../static/plugins/fonticon/iconfont.css"/>
        <!-- swiper -->
        <link rel="stylesheet" href="../../static/css/swiper.min.css">
        <script src="../../static/js/swiper.min.js"></script>
        <!-- animate.css -->
        <link rel="stylesheet" type="text/css" href="../../static/css/animate.css"/>
        <title>{{ title }}  －－Aixiaoai_cn</title>
        <script src="../../static/js/ckeditor.js"></script>
        <script src="../../static/update.js"></script>
        </head>
    <body>

        <textarea name='editor2' id="edit"></textarea>
        <script>
            var edit = CKEDITOR.replace('editor2');
            $(document).ready(function () {
                $.get('/get_article_content?randomId='+Math.random(),
            function (data,status) {
                msg = JSON.parse(data)
                if(msg.status == 'success')
                {
                    edit.setData(msg.data, function () {
                        this.checkDirty();
                    });
                }
                else {
                alert(msg.data);
            }});
            });

        </script>
     <div class="p3 f30">
    <span class="p2 pl3 pr3 ml1 btn radius5 btn-primary" id="update">更新</span>
    <span class="p2 pl3 pr3 ml22 btn radius5 btn-success" id="delete" >删除</span>
 </div>
    </body>
</html>